<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
<!-- 容器 -->
<div id="root">
<h1>欢迎{{name}}</h1>
    <button v-on:click="sayHello">点击</button>
    <button @click="sayHello($event,66)">点击</button>
</div>
<script type="text/javascript">
    new Vue({
        el: '#root',
        data: {
            name: '张三'
        },
         methods: {
        sayHello(zc,num){
            console.log(zc,num)
        },
        }
    }
    )
</script>
</body>
</html>